package com.wu.online.service.statistics.task;

import com.wu.online.service.statistics.service.DailyService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * @author lynn
 * @date 2020/8/17 - 23:30
 */
@Component
@Slf4j
public class ScheduledTask {

    @Autowired
    private DailyService dailyService;

    /**
     * 测试
     */
//    @Scheduled(cron="0/3 * * * * *") // 每隔3秒执行一次
    public void task1() {
        log.info("task1 执行");
    }
}
